home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / configure < prev    next >
Encoding:
Text File  |  1996-07-04  |  47.9 KB  |  1,580 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-targets        alternative target configurations"
  16. ac_help="$ac_help
  17.   --enable-shared         build shared BFD library"
  18.  
  19. # Initialize some variables set by options.
  20. # The variables have the same names as the options, with
  21. # dashes changed to underlines.
  22. build=NONE
  23. cache_file=./config.cache
  24. exec_prefix=NONE
  25. host=NONE
  26. no_create=
  27. nonopt=NONE
  28. no_recursion=
  29. prefix=NONE
  30. program_prefix=NONE
  31. program_suffix=NONE
  32. program_transform_name=s,x,x,
  33. silent=
  34. site=
  35. srcdir=
  36. target=NONE
  37. verbose=
  38. x_includes=NONE
  39. x_libraries=NONE
  40. bindir='${exec_prefix}/bin'
  41. sbindir='${exec_prefix}/sbin'
  42. libexecdir='${exec_prefix}/libexec'
  43. datadir='${prefix}/share'
  44. sysconfdir='${prefix}/etc'
  45. sharedstatedir='${prefix}/com'
  46. localstatedir='${prefix}/var'
  47. libdir='${exec_prefix}/lib'
  48. includedir='${prefix}/include'
  49. oldincludedir='/usr/include'
  50. infodir='${prefix}/info'
  51. mandir='${prefix}/man'
  52.  
  53. # Initialize some other variables.
  54. subdirs=
  55. MFLAGS= MAKEFLAGS=
  56.  
  57. ac_prev=
  58. for ac_option
  59. do
  60.  
  61.   # If the previous option needs an argument, assign it.
  62.   if test -n "$ac_prev"; then
  63.     eval "$ac_prev=\$ac_option"
  64.     ac_prev=
  65.     continue
  66.   fi
  67.  
  68.   case "$ac_option" in
  69.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  70.   *) ac_optarg= ;;
  71.   esac
  72.  
  73.   # Accept the important Cygnus configure options, so we can diagnose typos.
  74.  
  75.   case "$ac_option" in
  76.  
  77.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  78.     ac_prev=bindir ;;
  79.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  80.     bindir="$ac_optarg" ;;
  81.  
  82.   -build | --build | --buil | --bui | --bu)
  83.     ac_prev=build ;;
  84.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  85.     build="$ac_optarg" ;;
  86.  
  87.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  88.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  89.     ac_prev=cache_file ;;
  90.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  91.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  92.     cache_file="$ac_optarg" ;;
  93.  
  94.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  95.     ac_prev=datadir ;;
  96.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  97.   | --da=*)
  98.     datadir="$ac_optarg" ;;
  99.  
  100.   -disable-* | --disable-*)
  101.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  102.     # Reject names that are not valid shell variable names.
  103.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  104.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  105.     fi
  106.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  107.     eval "enable_${ac_feature}=no" ;;
  108.  
  109.   -enable-* | --enable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     case "$ac_option" in
  117.       *=*) ;;
  118.       *) ac_optarg=yes ;;
  119.     esac
  120.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  121.  
  122.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  123.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  124.   | --exec | --exe | --ex)
  125.     ac_prev=exec_prefix ;;
  126.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  127.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  128.   | --exec=* | --exe=* | --ex=*)
  129.     exec_prefix="$ac_optarg" ;;
  130.  
  131.   -gas | --gas | --ga | --g)
  132.     # Obsolete; use --with-gas.
  133.     with_gas=yes ;;
  134.  
  135.   -help | --help | --hel | --he)
  136.     # Omit some internal or obsolete options to make the list less imposing.
  137.     # This message is too long to be a string in the A/UX 3.1 sh.
  138.     cat << EOF
  139. Usage: configure [options] [host]
  140. Options: [defaults in brackets after descriptions]
  141. Configuration:
  142.   --cache-file=FILE       cache test results in FILE
  143.   --help                  print this message
  144.   --no-create             do not create output files
  145.   --quiet, --silent       do not print \`checking...' messages
  146.   --version               print the version of autoconf that created configure
  147. Directory and file names:
  148.   --prefix=PREFIX         install architecture-independent files in PREFIX
  149.                           [$ac_default_prefix]
  150.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  151.                           [same as prefix]
  152.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  153.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  154.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  155.   --datadir=DIR           read-only architecture-independent data in DIR
  156.                           [PREFIX/share]
  157.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  158.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  159.                           [PREFIX/com]
  160.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  161.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  162.   --includedir=DIR        C header files in DIR [PREFIX/include]
  163.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  164.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  165.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  166.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  167.   --program-prefix=PREFIX prepend PREFIX to installed program names
  168.   --program-suffix=SUFFIX append SUFFIX to installed program names
  169.   --program-transform-name=PROGRAM
  170.                           run sed PROGRAM on installed program names
  171. EOF
  172.     cat << EOF
  173. Host type:
  174.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  175.   --host=HOST             configure for HOST [guessed]
  176.   --target=TARGET         configure for TARGET [TARGET=HOST]
  177. Features and packages:
  178.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  179.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  180.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  181.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  182.   --x-includes=DIR        X include files are in DIR
  183.   --x-libraries=DIR       X library files are in DIR
  184. EOF
  185.     if test -n "$ac_help"; then
  186.       echo "--enable and --with options recognized:$ac_help"
  187.     fi
  188.     exit 0 ;;
  189.  
  190.   -host | --host | --hos | --ho)
  191.     ac_prev=host ;;
  192.   -host=* | --host=* | --hos=* | --ho=*)
  193.     host="$ac_optarg" ;;
  194.  
  195.   -includedir | --includedir | --includedi | --included | --include \
  196.   | --includ | --inclu | --incl | --inc)
  197.     ac_prev=includedir ;;
  198.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  199.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  200.     includedir="$ac_optarg" ;;
  201.  
  202.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  203.     ac_prev=infodir ;;
  204.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  205.     infodir="$ac_optarg" ;;
  206.  
  207.   -libdir | --libdir | --libdi | --libd)
  208.     ac_prev=libdir ;;
  209.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  210.     libdir="$ac_optarg" ;;
  211.  
  212.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  213.   | --libexe | --libex | --libe)
  214.     ac_prev=libexecdir ;;
  215.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  216.   | --libexe=* | --libex=* | --libe=*)
  217.     libexecdir="$ac_optarg" ;;
  218.  
  219.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  220.   | --localstate | --localstat | --localsta | --localst \
  221.   | --locals | --local | --loca | --loc | --lo)
  222.     ac_prev=localstatedir ;;
  223.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  224.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  225.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  226.     localstatedir="$ac_optarg" ;;
  227.  
  228.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  229.     ac_prev=mandir ;;
  230.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  231.     mandir="$ac_optarg" ;;
  232.  
  233.   -nfp | --nfp | --nf)
  234.     # Obsolete; use --without-fp.
  235.     with_fp=no ;;
  236.  
  237.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  238.   | --no-cr | --no-c)
  239.     no_create=yes ;;
  240.  
  241.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  242.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  243.     no_recursion=yes ;;
  244.  
  245.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  246.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  247.   | --oldin | --oldi | --old | --ol | --o)
  248.     ac_prev=oldincludedir ;;
  249.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  250.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  251.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  252.     oldincludedir="$ac_optarg" ;;
  253.  
  254.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  255.     ac_prev=prefix ;;
  256.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  257.     prefix="$ac_optarg" ;;
  258.  
  259.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  260.   | --program-pre | --program-pr | --program-p)
  261.     ac_prev=program_prefix ;;
  262.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  263.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  264.     program_prefix="$ac_optarg" ;;
  265.  
  266.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  267.   | --program-suf | --program-su | --program-s)
  268.     ac_prev=program_suffix ;;
  269.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  270.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  271.     program_suffix="$ac_optarg" ;;
  272.  
  273.   -program-transform-name | --program-transform-name \
  274.   | --program-transform-nam | --program-transform-na \
  275.   | --program-transform-n | --program-transform- \
  276.   | --program-transform | --program-transfor \
  277.   | --program-transfo | --program-transf \
  278.   | --program-trans | --program-tran \
  279.   | --progr-tra | --program-tr | --program-t)
  280.     ac_prev=program_transform_name ;;
  281.   -program-transform-name=* | --program-transform-name=* \
  282.   | --program-transform-nam=* | --program-transform-na=* \
  283.   | --program-transform-n=* | --program-transform-=* \
  284.   | --program-transform=* | --program-transfor=* \
  285.   | --program-transfo=* | --program-transf=* \
  286.   | --program-trans=* | --program-tran=* \
  287.   | --progr-tra=* | --program-tr=* | --program-t=*)
  288.     program_transform_name="$ac_optarg" ;;
  289.  
  290.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  291.   | -silent | --silent | --silen | --sile | --sil)
  292.     silent=yes ;;
  293.  
  294.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  295.     ac_prev=sbindir ;;
  296.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  297.   | --sbi=* | --sb=*)
  298.     sbindir="$ac_optarg" ;;
  299.  
  300.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  301.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  302.   | --sharedst | --shareds | --shared | --share | --shar \
  303.   | --sha | --sh)
  304.     ac_prev=sharedstatedir ;;
  305.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  306.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  307.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  308.   | --sha=* | --sh=*)
  309.     sharedstatedir="$ac_optarg" ;;
  310.  
  311.   -site | --site | --sit)
  312.     ac_prev=site ;;
  313.   -site=* | --site=* | --sit=*)
  314.     site="$ac_optarg" ;;
  315.  
  316.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  317.     ac_prev=srcdir ;;
  318.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  319.     srcdir="$ac_optarg" ;;
  320.  
  321.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  322.   | --syscon | --sysco | --sysc | --sys | --sy)
  323.     ac_prev=sysconfdir ;;
  324.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  325.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  326.     sysconfdir="$ac_optarg" ;;
  327.  
  328.   -target | --target | --targe | --targ | --tar | --ta | --t)
  329.     ac_prev=target ;;
  330.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  331.     target="$ac_optarg" ;;
  332.  
  333.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  334.     verbose=yes ;;
  335.  
  336.   -version | --version | --versio | --versi | --vers)
  337.     echo "configure generated by autoconf version 2.10"
  338.     exit 0 ;;
  339.  
  340.   -with-* | --with-*)
  341.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  342.     # Reject names that are not valid shell variable names.
  343.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  344.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  345.     fi
  346.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  347.     case "$ac_option" in
  348.       *=*) ;;
  349.       *) ac_optarg=yes ;;
  350.     esac
  351.     eval "with_${ac_package}='$ac_optarg'" ;;
  352.  
  353.   -without-* | --without-*)
  354.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  355.     # Reject names that are not valid shell variable names.
  356.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  357.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  358.     fi
  359.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  360.     eval "with_${ac_package}=no" ;;
  361.  
  362.   --x)
  363.     # Obsolete; use --with-x.
  364.     with_x=yes ;;
  365.  
  366.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  367.   | --x-incl | --x-inc | --x-in | --x-i)
  368.     ac_prev=x_includes ;;
  369.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  370.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  371.     x_includes="$ac_optarg" ;;
  372.  
  373.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  374.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  375.     ac_prev=x_libraries ;;
  376.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  377.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  378.     x_libraries="$ac_optarg" ;;
  379.  
  380.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  381.     ;;
  382.  
  383.   *)
  384.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  385.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  386.     fi
  387.     if test "x$nonopt" != xNONE; then
  388.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  389.     fi
  390.     nonopt="$ac_option"
  391.     ;;
  392.  
  393.   esac
  394. done
  395.  
  396. if test -n "$ac_prev"; then
  397.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  398. fi
  399.  
  400. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  401.  
  402. # File descriptor usage:
  403. # 0 standard input
  404. # 1 file creation
  405. # 2 errors and warnings
  406. # 3 some systems may open it to /dev/tty
  407. # 4 used on the Kubota Titan
  408. # 6 checking for... messages and results
  409. # 5 compiler messages saved in config.log
  410. if test "$silent" = yes; then
  411.   exec 6>/dev/null
  412. else
  413.   exec 6>&1
  414. fi
  415. exec 5>./config.log
  416.  
  417. echo "\
  418. This file contains any messages produced by compilers while
  419. running configure, to aid debugging if configure makes a mistake.
  420. " 1>&5
  421.  
  422. # Strip out --no-create and --no-recursion so they do not pile up.
  423. # Also quote any args containing shell metacharacters.
  424. ac_configure_args=
  425. for ac_arg
  426. do
  427.   case "$ac_arg" in
  428.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  429.   | --no-cr | --no-c) ;;
  430.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  432.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  433.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  434.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  435.   esac
  436. done
  437.  
  438. # NLS nuisances.
  439. # Only set LANG and LC_ALL to C if already set.
  440. # These must not be set unconditionally because not all systems understand
  441. # e.g. LANG=C (notably SCO).
  442. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  443. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  444.  
  445. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  446. rm -rf conftest* confdefs.h
  447. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  448. echo > confdefs.h
  449.  
  450. # A filename unique to this package, relative to the directory that
  451. # configure is in, which we can look for to find out if srcdir is correct.
  452. ac_unique_file=ldmain.c
  453.  
  454. # Find the source files, if location was not specified.
  455. if test -z "$srcdir"; then
  456.   ac_srcdir_defaulted=yes
  457.   # Try the directory containing this script, then its parent.
  458.   ac_prog=$0
  459.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  460.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  461.   srcdir=$ac_confdir
  462.   if test ! -r $srcdir/$ac_unique_file; then
  463.     srcdir=..
  464.   fi
  465. else
  466.   ac_srcdir_defaulted=no
  467. fi
  468. if test ! -r $srcdir/$ac_unique_file; then
  469.   if test "$ac_srcdir_defaulted" = yes; then
  470.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  471.   else
  472.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  473.   fi
  474. fi
  475. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  476.  
  477. # Prefer explicitly selected file to automatically selected ones.
  478. if test -z "$CONFIG_SITE"; then
  479.   if test "x$prefix" != xNONE; then
  480.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  481.   else
  482.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  483.   fi
  484. fi
  485. for ac_site_file in $CONFIG_SITE; do
  486.   if test -r "$ac_site_file"; then
  487.     echo "loading site script $ac_site_file"
  488.     . "$ac_site_file"
  489.   fi
  490. done
  491.  
  492. if test -r "$cache_file"; then
  493.   echo "loading cache $cache_file"
  494.   . $cache_file
  495. else
  496.   echo "creating cache $cache_file"
  497.   > $cache_file
  498. fi
  499.  
  500. ac_ext=c
  501. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  502. ac_cpp='$CPP $CPPFLAGS'
  503. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  504. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  505.  
  506. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  507.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  508.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  509.     ac_n= ac_c='
  510. ' ac_t='    '
  511.   else
  512.     ac_n=-n ac_c= ac_t=
  513.   fi
  514. else
  515.   ac_n= ac_c='\c' ac_t=
  516. fi
  517.  
  518.  
  519.  
  520. # Check whether --enable-targets or --disable-targets was given.
  521. if test "${enable_targets+set}" = set; then
  522.   enableval="$enable_targets"
  523.   case "${enableval}" in
  524.   yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
  525.             ;;
  526.   no)       enable_targets= ;;
  527.   *)        enable_targets=$enableval ;;
  528. esac
  529. fi
  530. # Check whether --enable-shared or --disable-shared was given.
  531. if test "${enable_shared+set}" = set; then
  532.   enableval="$enable_shared"
  533.   case "${enableval}" in
  534.   yes) shared=true ;;
  535.   no)  shared=false ;;
  536.   *bfd*) shared=true ;;
  537.   *) shared=false ;;
  538. esac
  539. fi
  540.  
  541.  
  542.  
  543. ac_aux_dir=
  544. for ac_dir in `cd $srcdir/..; pwd` $srcdir/`cd $srcdir/..; pwd`; do
  545.   if test -f $ac_dir/install-sh; then
  546.     ac_aux_dir=$ac_dir
  547.     ac_install_sh="$ac_aux_dir/install-sh -c"
  548.     break
  549.   elif test -f $ac_dir/install.sh; then
  550.     ac_aux_dir=$ac_dir
  551.     ac_install_sh="$ac_aux_dir/install.sh -c"
  552.     break
  553.   fi
  554. done
  555. if test -z "$ac_aux_dir"; then
  556.   { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..; pwd` $srcdir/`cd $srcdir/..; pwd`" 1>&2; exit 1; }
  557. fi
  558. ac_config_guess=$ac_aux_dir/config.guess
  559. ac_config_sub=$ac_aux_dir/config.sub
  560. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  561.  
  562.  
  563. # Do some error checking and defaulting for the host and target type.
  564. # The inputs are:
  565. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  566. #
  567. # The rules are:
  568. # 1. You are not allowed to specify --host, --target, and nonopt at the
  569. #    same time.
  570. # 2. Host defaults to nonopt.
  571. # 3. If nonopt is not specified, then host defaults to the current host,
  572. #    as determined by config.guess.
  573. # 4. Target and build default to nonopt.
  574. # 5. If nonopt is not specified, then target and build default to host.
  575.  
  576. # The aliases save the names the user supplied, while $host etc.
  577. # will get canonicalized.
  578. case $host---$target---$nonopt in
  579. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  580. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  581. esac
  582.  
  583.  
  584. # Make sure we can run config.sub.
  585. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  586. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  587. fi
  588.  
  589. echo $ac_n "checking host system type""... $ac_c" 1>&6
  590.  
  591. host_alias=$host
  592. case "$host_alias" in
  593. NONE)
  594.   case $nonopt in
  595.   NONE)
  596.     if host_alias=`$ac_config_guess`; then :
  597.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  598.     fi ;;
  599.   *) host_alias=$nonopt ;;
  600.   esac ;;
  601. esac
  602.  
  603. host=`$ac_config_sub $host_alias`
  604. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  605. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  606. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  607. echo "$ac_t""$host" 1>&6
  608.  
  609. echo $ac_n "checking target system type""... $ac_c" 1>&6
  610.  
  611. target_alias=$target
  612. case "$target_alias" in
  613. NONE)
  614.   case $nonopt in
  615.   NONE) target_alias=$host_alias ;;
  616.   *) target_alias=$nonopt ;;
  617.   esac ;;
  618. esac
  619.  
  620. target=`$ac_config_sub $target_alias`
  621. target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  622. target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  623. target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  624. echo "$ac_t""$target" 1>&6
  625.  
  626. echo $ac_n "checking build system type""... $ac_c" 1>&6
  627.  
  628. build_alias=$build
  629. case "$build_alias" in
  630. NONE)
  631.   case $nonopt in
  632.   NONE) build_alias=$host_alias ;;
  633.   *) build_alias=$nonopt ;;
  634.   esac ;;
  635. esac
  636.  
  637. build=`$ac_config_sub $build_alias`
  638. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  639. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  640. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  641. echo "$ac_t""$build" 1>&6
  642.  
  643. test "$host_alias" != "$target_alias" &&
  644.   test "$program_prefix$program_suffix$program_transform_name" = \
  645.     NONENONEs,x,x, &&
  646.   program_prefix=${target_alias}-
  647.  
  648. if test -z "$target" ; then
  649.     { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
  650. fi
  651. if test -z "$host" ; then
  652.     { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
  653. fi
  654. if test "$program_transform_name" = s,x,x,; then
  655.   program_transform_name=
  656. else
  657.   # Double any \ or $.  echo might interpret backslashes.
  658.   cat <<\EOF_SED > conftestsed
  659. s,\\,\\\\,g; s,\$,$$,g
  660. EOF_SED
  661.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  662.   rm -f conftestsed
  663. fi
  664. test "$program_prefix" != NONE &&
  665.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  666. # Use a double $ so make ignores it.
  667. test "$program_suffix" != NONE &&
  668.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  669.  
  670. # sed with no file args requires a program.
  671. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  672.  
  673.  
  674. # host-specific stuff:
  675.  
  676. # Extract the first word of "gcc", so it can be a program name with args.
  677. set dummy gcc; ac_word=$2
  678. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  679. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  680.   echo $ac_n "(cached) $ac_c" 1>&6
  681. else
  682.   if test -n "$CC"; then
  683.   ac_cv_prog_CC="$CC" # Let the user override the test.
  684. else
  685.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  686.   for ac_dir in $PATH; do
  687.     test -z "$ac_dir" && ac_dir=.
  688.     if test -f $ac_dir/$ac_word; then
  689.       ac_cv_prog_CC="gcc"
  690.       break
  691.     fi
  692.   done
  693.   IFS="$ac_save_ifs"
  694. fi
  695. fi
  696. CC="$ac_cv_prog_CC"
  697. if test -n "$CC"; then
  698.   echo "$ac_t""$CC" 1>&6
  699. else
  700.   echo "$ac_t""no" 1>&6
  701. fi
  702.  
  703. if test -z "$CC"; then
  704.   # Extract the first word of "cc", so it can be a program name with args.
  705. set dummy cc; ac_word=$2
  706. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  707. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  708.   echo $ac_n "(cached) $ac_c" 1>&6
  709. else
  710.   if test -n "$CC"; then
  711.   ac_cv_prog_CC="$CC" # Let the user override the test.
  712. else
  713.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  714.   ac_prog_rejected=no
  715.   for ac_dir in $PATH; do
  716.     test -z "$ac_dir" && ac_dir=.
  717.     if test -f $ac_dir/$ac_word; then
  718.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  719.         ac_prog_rejected=yes
  720.     continue
  721.       fi
  722.       ac_cv_prog_CC="cc"
  723.       break
  724.     fi
  725.   done
  726.   IFS="$ac_save_ifs"
  727. if test $ac_prog_rejected = yes; then
  728.   # We found a bogon in the path, so make sure we never use it.
  729.   set dummy $ac_cv_prog_CC
  730.   shift
  731.   if test $# -gt 0; then
  732.     # We chose a different compiler from the bogus one.
  733.     # However, it has the same basename, so the bogon will be chosen
  734.     # first if we set CC to just the basename; use the full file name.
  735.     shift
  736.     set dummy "$ac_dir/$ac_word" "$@"
  737.     shift
  738.     ac_cv_prog_CC="$@"
  739.   fi
  740. fi
  741. fi
  742. fi
  743. CC="$ac_cv_prog_CC"
  744. if test -n "$CC"; then
  745.   echo "$ac_t""$CC" 1>&6
  746. else
  747.   echo "$ac_t""no" 1>&6
  748. fi
  749.  
  750.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  751. fi
  752.  
  753. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  754. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  755.   echo $ac_n "(cached) $ac_c" 1>&6
  756. else
  757.   cat > conftest.c <<EOF
  758. #ifdef __GNUC__
  759.   yes;
  760. #endif
  761. EOF
  762. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  763.   ac_cv_prog_gcc=yes
  764. else
  765.   ac_cv_prog_gcc=no
  766. fi
  767. fi
  768.  
  769. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  770. if test $ac_cv_prog_gcc = yes; then
  771.   GCC=yes
  772.   if test "${CFLAGS+set}" != set; then
  773.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  774. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  775.   echo $ac_n "(cached) $ac_c" 1>&6
  776. else
  777.   echo 'void f(){}' > conftest.c
  778. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  779.   ac_cv_prog_gcc_g=yes
  780. else
  781.   ac_cv_prog_gcc_g=no
  782. fi
  783. rm -f conftest*
  784.  
  785. fi
  786.  
  787. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  788.     if test $ac_cv_prog_gcc_g = yes; then
  789.       CFLAGS="-g -O"
  790.     else
  791.       CFLAGS="-O"
  792.     fi
  793.   fi
  794. else
  795.   GCC=
  796.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  797. fi
  798.  
  799. # Find a good install program.  We prefer a C program (faster),
  800. # so one script is as good as another.  But avoid the broken or
  801. # incompatible versions:
  802. # SysV /etc/install, /usr/sbin/install
  803. # SunOS /usr/etc/install
  804. # IRIX /sbin/install
  805. # AIX /bin/install
  806. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  807. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  808. # ./install, which can be erroneously created by make from ./install.sh.
  809. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  810. if test -z "$INSTALL"; then
  811. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  812.   echo $ac_n "(cached) $ac_c" 1>&6
  813. else
  814.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  815.   for ac_dir in $PATH; do
  816.     # Account for people who put trailing slashes in PATH elements.
  817.     case "$ac_dir/" in
  818.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  819.     *)
  820.       # OSF1 and SCO ODT 3.0 have their own names for install.
  821.       for ac_prog in ginstall installbsd scoinst install; do
  822.         if test -f $ac_dir/$ac_prog; then
  823.       if test $ac_prog = install &&
  824.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  825.         # AIX install.  It has an incompatible calling convention.
  826.         # OSF/1 installbsd also uses dspmsg, but is usable.
  827.         :
  828.       else
  829.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  830.         break 2
  831.       fi
  832.     fi
  833.       done
  834.       ;;
  835.     esac
  836.   done
  837.   IFS="$ac_save_ifs"
  838.  
  839. fi
  840.   if test "${ac_cv_path_install+set}" = set; then
  841.     INSTALL="$ac_cv_path_install"
  842.   else
  843.     # As a last resort, use the slow shell script.  We don't cache a
  844.     # path for INSTALL within a source directory, because that will
  845.     # break other packages using the cache if that directory is
  846.     # removed, or if the path is relative.
  847.     INSTALL="$ac_install_sh"
  848.   fi
  849. fi
  850. echo "$ac_t""$INSTALL" 1>&6
  851.  
  852. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  853. # It thinks the first close brace ends the variable substitution.
  854. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  855.  
  856. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  857.  
  858.  
  859. . ${srcdir}/configure.host
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868. # For most hosts we can use a simple definition to pick up the BFD and
  869. # opcodes libraries.  However, if we are building shared libraries, we
  870. # need to handle some hosts specially.
  871. BFDLIB='-L../bfd -lbfd'
  872. case "${host}" in
  873. *-*-sunos*)
  874.   # On SunOS, we must link against the name we are going to install,
  875.   # not -lbfd, since SunOS does not support SONAME.
  876.   if test "${shared}" = "true"; then
  877.     BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
  878.   fi
  879.   ;;
  880. alpha*-*-osf*)
  881.   # On Alpha OSF/1, the native linker searches all the -L
  882.   # directories for any LIB.so files, and only then searches for any
  883.   # LIB.a files.  That means that if there is an installed
  884.   # libbfd.so, but this build is not done with --enable-shared, the
  885.   # link will wind up being against the install libbfd.so rather
  886.   # than the newly built libbfd.  To avoid this, we must explicitly
  887.   # link against libbfd.a when --enable-shared is not used.
  888.   if test "${shared}" != "true"; then
  889.     BFDLIB='../bfd/libbfd.a'
  890.   fi
  891.   ;;
  892. esac
  893.  
  894.  
  895. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  896. # On Suns, sometimes $CPP names a directory.
  897. if test -n "$CPP" && test -d "$CPP"; then
  898.   CPP=
  899. fi
  900. if test -z "$CPP"; then
  901. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  902.   echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904.     # This must be in double quotes, not single quotes, because CPP may get
  905.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  906.   CPP="${CC-cc} -E"
  907.   # On the NeXT, cc -E runs the code through the compiler's parser,
  908.   # not just through cpp.
  909.   cat > conftest.$ac_ext <<EOF
  910. #line 911 "configure"
  911. #include "confdefs.h"
  912. #include <assert.h>
  913. Syntax Error
  914. EOF
  915. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  916. { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  917. ac_err=`grep -v '^ *+' conftest.out`
  918. if test -z "$ac_err"; then
  919.   :
  920. else
  921.   echo "$ac_err" >&5
  922.   rm -rf conftest*
  923.   CPP="${CC-cc} -E -traditional-cpp"
  924.   cat > conftest.$ac_ext <<EOF
  925. #line 926 "configure"
  926. #include "confdefs.h"
  927. #include <assert.h>
  928. Syntax Error
  929. EOF
  930. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  931. { (eval echo configure:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  932. ac_err=`grep -v '^ *+' conftest.out`
  933. if test -z "$ac_err"; then
  934.   :
  935. else
  936.   echo "$ac_err" >&5
  937.   rm -rf conftest*
  938.   CPP=/lib/cpp
  939. fi
  940. rm -f conftest*
  941. fi
  942. rm -f conftest*
  943.   ac_cv_prog_CPP="$CPP"
  944. fi
  945.   CPP="$ac_cv_prog_CPP"
  946. else
  947.   ac_cv_prog_CPP="$CPP"
  948. fi
  949. echo "$ac_t""$CPP" 1>&6
  950.  
  951. for ac_hdr in string.h strings.h stdlib.h unistd.h
  952. do
  953. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  954. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  955. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  956.   echo $ac_n "(cached) $ac_c" 1>&6
  957. else
  958.   cat > conftest.$ac_ext <<EOF
  959. #line 960 "configure"
  960. #include "confdefs.h"
  961. #include <$ac_hdr>
  962. EOF
  963. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  964. { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  965. ac_err=`grep -v '^ *+' conftest.out`
  966. if test -z "$ac_err"; then
  967.   rm -rf conftest*
  968.   eval "ac_cv_header_$ac_safe=yes"
  969. else
  970.   echo "$ac_err" >&5
  971.   rm -rf conftest*
  972.   eval "ac_cv_header_$ac_safe=no"
  973. fi
  974. rm -f conftest*
  975. fi
  976. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  977.   echo "$ac_t""yes" 1>&6
  978.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  979.   cat >> confdefs.h <<EOF
  980. #define $ac_tr_hdr 1
  981. EOF
  982.  
  983. else
  984.   echo "$ac_t""no" 1>&6
  985. fi
  986. done
  987.  
  988. for ac_func in sbrk
  989. do
  990. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  991. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  992.   echo $ac_n "(cached) $ac_c" 1>&6
  993. else
  994.   cat > conftest.$ac_ext <<EOF
  995. #line 996 "configure"
  996. #include "confdefs.h"
  997. /* System header to define __stub macros and hopefully few prototypes,
  998.     which can conflict with char $ac_func(); below.  */
  999. #include <assert.h>
  1000. /* Override any gcc2 internal prototype to avoid an error.  */
  1001. /* We use char because int might match the return type of a gcc2
  1002.     builtin and then its argument prototype would still apply.  */
  1003. char $ac_func();
  1004.  
  1005. int main() { return 0; }
  1006. int t() {
  1007.  
  1008. /* The GNU C library defines this for functions which it implements
  1009.     to always fail with ENOSYS.  Some functions are actually named
  1010.     something starting with __ and the normal name is an alias.  */
  1011. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1012. choke me
  1013. #else
  1014. $ac_func();
  1015. #endif
  1016.  
  1017. ; return 0; }
  1018. EOF
  1019. if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1020.   rm -rf conftest*
  1021.   eval "ac_cv_func_$ac_func=yes"
  1022. else
  1023.   rm -rf conftest*
  1024.   eval "ac_cv_func_$ac_func=no"
  1025. fi
  1026. rm -f conftest*
  1027.  
  1028. fi
  1029. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1030.   echo "$ac_t""yes" 1>&6
  1031.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1032.   cat >> confdefs.h <<EOF
  1033. #define $ac_tr_func 1
  1034. EOF
  1035.  
  1036. else
  1037.   echo "$ac_t""no" 1>&6
  1038. fi
  1039. done
  1040.  
  1041. ac_header_dirent=no
  1042. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1043. do
  1044. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1045. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1046. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1047.   echo $ac_n "(cached) $ac_c" 1>&6
  1048. else
  1049.   cat > conftest.$ac_ext <<EOF
  1050. #line 1051 "configure"
  1051. #include "confdefs.h"
  1052. #include <sys/types.h>
  1053. #include <$ac_hdr>
  1054. int main() { return 0; }
  1055. int t() {
  1056. DIR *dirp = 0;
  1057. ; return 0; }
  1058. EOF
  1059. if { (eval echo configure:1060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1060.   rm -rf conftest*
  1061.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1062. else
  1063.   rm -rf conftest*
  1064.   eval "ac_cv_header_dirent_$ac_safe=no"
  1065. fi
  1066. rm -f conftest*
  1067.  
  1068. fi
  1069. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1070.   echo "$ac_t""yes" 1>&6
  1071.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1072.   cat >> confdefs.h <<EOF
  1073. #define $ac_tr_hdr 1
  1074. EOF
  1075.  ac_header_dirent=$ac_hdr; break
  1076. else
  1077.   echo "$ac_t""no" 1>&6
  1078. fi
  1079. done
  1080. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1081. if test $ac_header_dirent = dirent.h; then
  1082. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1083. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1084. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1085.   echo $ac_n "(cached) $ac_c" 1>&6
  1086. else
  1087.   ac_save_LIBS="$LIBS"
  1088. LIBS="-ldir  $LIBS"
  1089. cat > conftest.$ac_ext <<EOF
  1090. #line 1091 "configure"
  1091. #include "confdefs.h"
  1092. /* Override any gcc2 internal prototype to avoid an error.  */
  1093. /* We use char because int might match the return type of a gcc2
  1094.     builtin and then its argument prototype would still apply.  */
  1095. char opendir();
  1096.  
  1097. int main() { return 0; }
  1098. int t() {
  1099. opendir()
  1100. ; return 0; }
  1101. EOF
  1102. if { (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1103.   rm -rf conftest*
  1104.   eval "ac_cv_lib_$ac_lib_var=yes"
  1105. else
  1106.   rm -rf conftest*
  1107.   eval "ac_cv_lib_$ac_lib_var=no"
  1108. fi
  1109. rm -f conftest*
  1110. LIBS="$ac_save_LIBS"
  1111.  
  1112. fi
  1113. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1114.   echo "$ac_t""yes" 1>&6
  1115.   LIBS="$LIBS -ldir"
  1116. else
  1117.   echo "$ac_t""no" 1>&6
  1118. fi
  1119.  
  1120. else
  1121. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1122. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1123. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1124.   echo $ac_n "(cached) $ac_c" 1>&6
  1125. else
  1126.   ac_save_LIBS="$LIBS"
  1127. LIBS="-lx  $LIBS"
  1128. cat > conftest.$ac_ext <<EOF
  1129. #line 1130 "configure"
  1130. #include "confdefs.h"
  1131. /* Override any gcc2 internal prototype to avoid an error.  */
  1132. /* We use char because int might match the return type of a gcc2
  1133.     builtin and then its argument prototype would still apply.  */
  1134. char opendir();
  1135.  
  1136. int main() { return 0; }
  1137. int t() {
  1138. opendir()
  1139. ; return 0; }
  1140. EOF
  1141. if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1142.   rm -rf conftest*
  1143.   eval "ac_cv_lib_$ac_lib_var=yes"
  1144. else
  1145.   rm -rf conftest*
  1146.   eval "ac_cv_lib_$ac_lib_var=no"
  1147. fi
  1148. rm -f conftest*
  1149. LIBS="$ac_save_LIBS"
  1150.  
  1151. fi
  1152. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1153.   echo "$ac_t""yes" 1>&6
  1154.   LIBS="$LIBS -lx"
  1155. else
  1156.   echo "$ac_t""no" 1>&6
  1157. fi
  1158.  
  1159. fi
  1160.  
  1161.  
  1162.  
  1163. case "${host}" in
  1164. i[345]86-*-msdos* | i[345]86-*-go32* | *-*-cygwin32)
  1165.   cat >> confdefs.h <<\EOF
  1166. #define USE_BINARY_FOPEN 1
  1167. EOF
  1168.  ;;
  1169. esac
  1170.  
  1171. echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
  1172. if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
  1173.   echo $ac_n "(cached) $ac_c" 1>&6
  1174. else
  1175.   cat > conftest.$ac_ext <<EOF
  1176. #line 1177 "configure"
  1177. #include "confdefs.h"
  1178.  
  1179. #include <stdio.h>
  1180. #ifdef HAVE_STDLIB_H
  1181. #include <stdlib.h>
  1182. #endif
  1183. #ifdef HAVE_UNISTD_H
  1184. #include <unistd.h>
  1185. #endif
  1186. int main() { return 0; }
  1187. int t() {
  1188. char *(*pfn) = (char *(*)) free
  1189. ; return 0; }
  1190. EOF
  1191. if { (eval echo configure:1192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1192.   rm -rf conftest*
  1193.   bfd_cv_decl_needed_free=no
  1194. else
  1195.   rm -rf conftest*
  1196.   bfd_cv_decl_needed_free=yes
  1197. fi
  1198. rm -f conftest*
  1199.  
  1200. fi
  1201.  
  1202. echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
  1203. if test $bfd_cv_decl_needed_free = yes; then
  1204.   bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1205.   cat >> confdefs.h <<EOF
  1206. #define $bfd_tr_decl 1
  1207. EOF
  1208.  
  1209. fi
  1210.  
  1211.  
  1212. # target-specific stuff:
  1213.  
  1214. all_targets=
  1215. EMUL=
  1216. all_emuls=
  1217. TDIRS=
  1218.  
  1219. for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
  1220. do
  1221.   if test "$targ_alias" = "all"; then
  1222.     all_targets=true
  1223.   else
  1224.     # Canonicalize the secondary target names.
  1225.     result=`$ac_config_sub $targ_alias 2>/dev/null`
  1226.     if test -n "$result"; then
  1227.     targ=$result
  1228.     else
  1229.     targ=$targ_alias
  1230.     fi
  1231.  
  1232.     . ${srcdir}/configure.tgt
  1233.  
  1234.     if test "$targ" = "$target"; then
  1235.       EMUL=$targ_emul
  1236.     fi
  1237.  
  1238.     for i in $targ_emul $targ_extra_emuls; do
  1239.     case " $all_emuls " in
  1240.     *" e${i}.o "*) ;;
  1241.     *)
  1242.       all_emuls="$all_emuls e${i}.o"
  1243.       eval result=\$tdir_$i
  1244.       test -z "$result" && result=$targ_alias
  1245.       TDIRS="$TDIRS\\
  1246. tdir_$i=$result"
  1247.       ;;
  1248.     esac
  1249.     done
  1250.   fi
  1251. done
  1252.  
  1253.  
  1254.  
  1255.  
  1256. if test x${all_targets} = xtrue; then
  1257.   EMULATION_OFILES='$(ALL_EMULATIONS)'
  1258. else
  1259.   EMULATION_OFILES=$all_emuls
  1260. fi
  1261.  
  1262.  
  1263. trap '' 1 2 15
  1264. cat > confcache <<\EOF
  1265. # This file is a shell script that caches the results of configure
  1266. # tests run on this system so they can be shared between configure
  1267. # scripts and configure runs.  It is not useful on other systems.
  1268. # If it contains results you don't want to keep, you may remove or edit it.
  1269. #
  1270. # By default, configure uses ./config.cache as the cache file,
  1271. # creating it if it does not exist already.  You can give configure
  1272. # the --cache-file=FILE option to use a different cache file; that is
  1273. # what configure does when it calls configure scripts in
  1274. # subdirectories, so they share the cache.
  1275. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1276. # config.status only pays attention to the cache file if you give it the
  1277. # --recheck option to rerun configure.
  1278. #
  1279. EOF
  1280. # Ultrix sh set writes to stderr and can't be redirected directly,
  1281. # and sets the high bit in the cache file unless we assign to the vars.
  1282. (set) 2>&1 |
  1283.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1284.   >> confcache
  1285. if cmp -s $cache_file confcache; then
  1286.   :
  1287. else
  1288.   if test -w $cache_file; then
  1289.     echo "updating cache $cache_file"
  1290.     cat confcache > $cache_file
  1291.   else
  1292.     echo "not updating unwritable cache $cache_file"
  1293.   fi
  1294. fi
  1295. rm -f confcache
  1296.  
  1297. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1298.  
  1299. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1300. # Let make expand exec_prefix.
  1301. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1302.  
  1303. # Any assignment to VPATH causes Sun make to only execute
  1304. # the first set of double-colon rules, so remove it if not needed.
  1305. # If there is a colon in the path, we need to keep it.
  1306. if test "x$srcdir" = x.; then
  1307.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1308. fi
  1309.  
  1310. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1311.  
  1312. DEFS=-DHAVE_CONFIG_H
  1313.  
  1314. # Without the "./", some shells look in PATH for config.status.
  1315. : ${CONFIG_STATUS=./config.status}
  1316.  
  1317. echo creating $CONFIG_STATUS
  1318. rm -f $CONFIG_STATUS
  1319. cat > $CONFIG_STATUS <<EOF
  1320. #! /bin/sh
  1321. # Generated automatically by configure.
  1322. # Run this file to recreate the current configuration.
  1323. # This directory was configured as follows,
  1324. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1325. #
  1326. # $0 $ac_configure_args
  1327. #
  1328. # Compiler output produced by configure, useful for debugging
  1329. # configure, is in ./config.log if it exists.
  1330.  
  1331. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1332. for ac_option
  1333. do
  1334.   case "\$ac_option" in
  1335.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1336.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1337.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1338.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1339.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1340.     exit 0 ;;
  1341.   -help | --help | --hel | --he | --h)
  1342.     echo "\$ac_cs_usage"; exit 0 ;;
  1343.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1344.   esac
  1345. done
  1346.  
  1347. ac_given_srcdir=$srcdir
  1348. ac_given_INSTALL="$INSTALL"
  1349.  
  1350. trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1351. EOF
  1352. cat >> $CONFIG_STATUS <<EOF
  1353.  
  1354. # Protect against being on the right side of a sed subst in config.status.
  1355. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1356.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1357. $ac_vpsub
  1358. $extrasub
  1359. s%@CFLAGS@%$CFLAGS%g
  1360. s%@CPPFLAGS@%$CPPFLAGS%g
  1361. s%@CXXFLAGS@%$CXXFLAGS%g
  1362. s%@DEFS@%$DEFS%g
  1363. s%@LDFLAGS@%$LDFLAGS%g
  1364. s%@LIBS@%$LIBS%g
  1365. s%@exec_prefix@%$exec_prefix%g
  1366. s%@prefix@%$prefix%g
  1367. s%@program_transform_name@%$program_transform_name%g
  1368. s%@bindir@%$bindir%g
  1369. s%@sbindir@%$sbindir%g
  1370. s%@libexecdir@%$libexecdir%g
  1371. s%@datadir@%$datadir%g
  1372. s%@sysconfdir@%$sysconfdir%g
  1373. s%@sharedstatedir@%$sharedstatedir%g
  1374. s%@localstatedir@%$localstatedir%g
  1375. s%@libdir@%$libdir%g
  1376. s%@includedir@%$includedir%g
  1377. s%@oldincludedir@%$oldincludedir%g
  1378. s%@infodir@%$infodir%g
  1379. s%@mandir@%$mandir%g
  1380. s%@host@%$host%g
  1381. s%@host_alias@%$host_alias%g
  1382. s%@host_cpu@%$host_cpu%g
  1383. s%@host_vendor@%$host_vendor%g
  1384. s%@host_os@%$host_os%g
  1385. s%@target@%$target%g
  1386. s%@target_alias@%$target_alias%g
  1387. s%@target_cpu@%$target_cpu%g
  1388. s%@target_vendor@%$target_vendor%g
  1389. s%@target_os@%$target_os%g
  1390. s%@build@%$build%g
  1391. s%@build_alias@%$build_alias%g
  1392. s%@build_cpu@%$build_cpu%g
  1393. s%@build_vendor@%$build_vendor%g
  1394. s%@build_os@%$build_os%g
  1395. s%@CC@%$CC%g
  1396. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1397. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1398. s%@HLDFLAGS@%$HLDFLAGS%g
  1399. s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
  1400. s%@HDEFINES@%$HDEFINES%g
  1401. s%@HOSTING_CRT0@%$HOSTING_CRT0%g
  1402. s%@HOSTING_LIBS@%$HOSTING_LIBS%g
  1403. s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
  1404. s%@BFDLIB@%$BFDLIB%g
  1405. s%@CPP@%$CPP%g
  1406. s%@EMUL@%$EMUL%g
  1407. s%@TDIRS@%$TDIRS%g
  1408. s%@EMULATION_OFILES@%$EMULATION_OFILES%g
  1409.  
  1410. CEOF
  1411. EOF
  1412. cat >> $CONFIG_STATUS <<EOF
  1413.  
  1414. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1415. EOF
  1416. cat >> $CONFIG_STATUS <<\EOF
  1417. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1418.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1419.   case "$ac_file" in
  1420.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1421.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1422.   *) ac_file_in="${ac_file}.in" ;;
  1423.   esac
  1424.  
  1425.   # Adjust relative srcdir, etc. for subdirectories.
  1426.  
  1427.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1428.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1429.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1430.     # The file is in a subdirectory.
  1431.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1432.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1433.     # A "../" for each directory in $ac_dir_suffix.
  1434.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1435.   else
  1436.     ac_dir_suffix= ac_dots=
  1437.   fi
  1438.  
  1439.   case "$ac_given_srcdir" in
  1440.   .)  srcdir=.
  1441.       if test -z "$ac_dots"; then top_srcdir=.
  1442.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1443.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1444.   *) # Relative path.
  1445.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1446.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1447.   esac
  1448.  
  1449.   case "$ac_given_INSTALL" in
  1450.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1451.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1452.   esac
  1453.   echo creating "$ac_file"
  1454.   rm -f "$ac_file"
  1455.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1456.   case "$ac_file" in
  1457.   *Makefile*) ac_comsub="1i\\
  1458. # $configure_input" ;;
  1459.   *) ac_comsub= ;;
  1460.   esac
  1461.   sed -e "$ac_comsub
  1462. s%@configure_input@%$configure_input%g
  1463. s%@srcdir@%$srcdir%g
  1464. s%@top_srcdir@%$top_srcdir%g
  1465. s%@INSTALL@%$INSTALL%g
  1466. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1467. fi; done
  1468. rm -f conftest.subs
  1469.  
  1470. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1471. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1472. #
  1473. # ac_d sets the value in "#define NAME VALUE" lines.
  1474. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1475. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1476. ac_dC='\3'
  1477. ac_dD='%g'
  1478. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1479. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1480. ac_uB='\([     ]\)%\1#\2define\3'
  1481. ac_uC=' '
  1482. ac_uD='\4%g'
  1483. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1484. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1485. ac_eB='$%\1#\2define\3'
  1486. ac_eC=' '
  1487. ac_eD='%g'
  1488.  
  1489. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
  1490. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1491.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1492.   case "$ac_file" in
  1493.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1494.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1495.   *) ac_file_in="${ac_file}.in" ;;
  1496.   esac
  1497.  
  1498.   echo creating $ac_file
  1499.  
  1500.   rm -f conftest.frag conftest.in conftest.out
  1501.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1502.  
  1503. EOF
  1504.  
  1505. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1506. # the proper values into config.h.in to produce config.h.  And first:
  1507. # Protect against being on the right side of a sed subst in config.status.
  1508. # Protect against being in an unquoted here document in config.status.
  1509. rm -f conftest.vals
  1510. cat > conftest.hdr <<\EOF
  1511. s/[\\&%]/\\&/g
  1512. s%[\\$`]%\\&%g
  1513. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1514. s%ac_d%ac_u%gp
  1515. s%ac_u%ac_e%gp
  1516. EOF
  1517. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1518. rm -f conftest.hdr
  1519.  
  1520. # This sed command replaces #undef with comments.  This is necessary, for
  1521. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1522. # on some systems where configure will not decide to define it.
  1523. cat >> conftest.vals <<\EOF
  1524. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1525. EOF
  1526.  
  1527. # Break up conftest.vals because some shells have a limit on
  1528. # the size of here documents, and old seds have small limits too.
  1529. # Maximum number of lines to put in a single here document.
  1530. ac_max_here_lines=12
  1531.  
  1532. rm -f conftest.tail
  1533. while :
  1534. do
  1535.   ac_lines=`grep -c . conftest.vals`
  1536.   # grep -c gives empty output for an empty file on some AIX systems.
  1537.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1538.   # Write a limited-size here document to conftest.frag.
  1539.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1540.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1541.   echo 'CEOF
  1542.   sed -f conftest.frag conftest.in > conftest.out
  1543.   rm -f conftest.in
  1544.   mv conftest.out conftest.in
  1545. ' >> $CONFIG_STATUS
  1546.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1547.   rm -f conftest.vals
  1548.   mv conftest.tail conftest.vals
  1549. done
  1550. rm -f conftest.vals
  1551.  
  1552. cat >> $CONFIG_STATUS <<\EOF
  1553.   rm -f conftest.frag conftest.h
  1554.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1555.   cat conftest.in >> conftest.h
  1556.   rm -f conftest.in
  1557.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1558.     echo "$ac_file is unchanged"
  1559.     rm -f conftest.h
  1560.   else
  1561.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1562.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1563.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1564.       # The file is in a subdirectory.
  1565.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1566.     fi
  1567.     rm -f $ac_file
  1568.     mv conftest.h $ac_file
  1569.   fi
  1570. fi; done
  1571.  
  1572.  
  1573. case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
  1574. exit 0
  1575. EOF
  1576. chmod +x $CONFIG_STATUS
  1577. rm -fr confdefs* $ac_clean_files
  1578. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1579.  
  1580.